home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -seriously_amiga- / shareware / programming / other / modemlink / examples / devicestuff.h < prev    next >
C/C++ Source or Header  |  1997-11-05  |  600b  |  19 lines

  1. #ifndef DEVICES_STUFF_H
  2. #define DEVICE_STUFF_H
  3.  
  4. #include <exec/types.h>
  5. #include <exec/io.h>
  6. #include <exec/ports.h>
  7.  
  8. int OpenTimerDevice(struct MsgPort **TimerMP, struct timerequest **TimerIO);
  9. int OpenSerialDevice(struct MsgPort **SerMP, struct IOExtSer **SerIO, char *SerName, LONG Unit);
  10.  
  11. int TimedIO(struct IORequest *IOReq, int TimeOut);
  12. void DoAbortIO(struct IORequest *IO);
  13. void SafeCloseDevice(struct MsgPort *MP, struct IORequest *IO);
  14.  
  15. int CloneIO(struct IORequest *IO, struct MsgPort **NewMP, struct IORequest **NewIO);
  16. void DeleteIO_MP(struct MsgPort *MP, struct IORequest *IO);
  17.  
  18. #endif
  19.